package com.max.sportmanage.service;

import com.max.sportmanage.common.Result;
import com.max.sportmanage.entity.SysPermission;
import com.max.sportmanage.util.QueryInfo;

public interface SysPermissionService {

    /**
     * 分页查询
     * @param queryInfo
     * @return
     */
    Result findPage(QueryInfo queryInfo);

    /**
     * 添加权限数据
     * @param sysPermission
     * @return
     */
    Result insert(SysPermission sysPermission);

    /**
     * 删除
     * @param id
     * @return
     */
    Result delete(Long id);

    /**
     * 修改权限数据
     * @param sysPermission
     * @return
     */
    Result update(SysPermission sysPermission);
}
